<div class="userinfo">
    <div class="user-img"><img src="<?php echo _get_user_profile();?>" width="100px" height="100px" style="border-radius: 50%"/></div>
    <?php global $user;?>
    <div class="user-content">
        <p>用户名：<?php echo $user->name; ?></p>
        <p>注册时间：<?php echo date("Y-m-d",$user->created);?></p>
        <p>上次登录时间：<?php echo date("Y-m-d",$user->login);?></p>
        <p>用户类型：<?php $info = _get_user_info($user->uid) ;echo $info['role'] != "注册用户"&&$info['role'] != "authenticated user"?$info['role']:'普通用户';?></p>
    </div>
    <p style="display: none;"><?php print render($form['qr_code']);?></p>
    <div class="qr-code"><img src="<?php echo qr_code('user/'.$user->uid,'user_'.$user->uid.'.png');?>"   width="100px" height="100px" /></div>
</div>

<div class="hp-tab-newprd">
    <ul class="j-sw-nav">
        <?php if(empty($_GET['employee_id'])) { ?>
            <li class="newprd-s1 tab-li"><a href="<?php echo base_path(); ?>employee/list">查看</a></li>
        <?php if(user_access('add employee')){ ?>
            <li class="newprd-s2 tab-li<?php if (arg(1) == 'add') { ?> on <?php } ?>"><a
                    href="<?php echo base_path(); ?>employee/add">添加</a></li>
            <?php } if (arg(1) == 'edit' && !empty(arg(2))) { ?>
                <li class="newprd-s3 tab-li on"><a href="javascript:void(0)">修改</a></li>
            <?php }
        }else{?>
            <li class="newprd-s3 tab-li on"><a href="javascript:void(0)">基础信息</a></li>
        <?php }?>
    </ul>
    <div class="table-div" >
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>用户名:</div><?php print render($form['employee_login']['account']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>姓名:</div><?php print render($form['employee']['name']); ?></div>
        </div>
        <div class="small-select column" style="clear:both">
            <div class="gender"><div class="form-label">性别:</div><?php print render($form['employee']['gender']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label">电话:</div><?php print render($form['employee']['phone']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>手机:</div><?php print render($form['employee']['cell']); ?></div>
        </div>
        <div class="small-select big-input column" style="clear:both">
            <div class="big-div"><div class="form-label">家庭住址:</div><?php print render($form['employee']['address']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>所在区域:</div><?php print render($form['employee_work']['juris']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>登录角色:</div><?php print render($form['employee_work']['role']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>所在部门:</div><?php print render($form['employee_work']['department']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>部门经理:</div><?php print render($form['employee_work']['manager']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>职位:</div><?php print render($form['employee_work']['position']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>单位 :</div><?php print render($form['employee_work']['company']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="form-label">备注信息:</div><div style="margin-left: 11.3em; "><?php print render( $form['employee_other']['comments']); ?></div>
        </div>
        <div class="add-submit" style="text-align: center"><?php print render($form['submit']); ?></div>
    </div>
</div>
</div>

<?php print drupal_render_children($form); ?>

